package com.coocaa.aries.jmeter.util;

import com.coocaa.aries.jmeter.service.impl.ExtTestCaseServiceImpl;
import lombok.Setter;

/**
 * @author : bijiahao
 * @date : 2019/4/10.
 * @description: 测试用例biz 工具类
 * <p> </p>
 */
public class ExtTestCaseUtil {
    @Setter
    private static ExtTestCaseServiceImpl extTestCaseService;

    /**
     * 更新状态
     *
     * @param id
     * @param status
     */
    public static void updateStatus(Integer id, Integer status) {
        extTestCaseService.getExtTestCaseBiz().updateStatus(id, status);
    }

    /**
     * 更新状态和测试报告目录
     *
     * @param id
     * @param reportDir
     * @param status
     */
    public static void updateStatusAndReportDir(Integer id, String reportDir, Integer status) {
        extTestCaseService.getExtTestCaseBiz().updateStatusAndReportDir(id, reportDir, status);
    }

    public static void stopAllExecuting() {
        extTestCaseService.stopAllExecuting();
    }


}
